package com.zhuiyun.project.api.record.service;

import com.zhuiyun.project.api.lottery.entity.Lottery;
import com.zhuiyun.project.api.lottery.entity.PLSResult;
import com.zhuiyun.project.api.record.entity.CommitRecord;
import com.zhuiyun.project.api.record.entity.MyRecord;
import com.zhuiyun.project.common.response.CommonResult;

import java.util.List;

/**
 * @ClassName LotteryService
 * @Description TODO
 * @Author 17179
 * @Date 2024/7/16 15:48
 **/
public interface RecordService {

    /**
     * 保存提交得记录
     * @param record
     */
    int saveRecord(CommitRecord record);

    List<CommitRecord> getRecordByDeviceId(String deviceId,String type);

    void clearRecord();

     /**
     * 用户删除记录
     * @param id
     * @return
     */
    int deleteRecordById(Integer id,String type);

    List getDataIntersection(String type, String optionType,String deviceId);

    List getDataTotal(String type, String optionType, String deviceId);

    int saveMyRecord(MyRecord record);

    void clearMyRecord();

    //获取result数据
     CommonResult getResultDataCount(String type);
    /**
     *
     * 在排序类型中按照类型进行统计排序
     * @param type
     * @param optionType
     * @return
     */
    CommonResult getRecordBySort(String type, int optionType);

    CommonResult getAiRecordByType(String type,int limit);

    int deleteRecordAll(int id,String type);
}
